<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Hero War:  Fichier source de C:/Documents and Settings/israhal17/Bureau/devel/HeroWar/include/gfx/Map.h</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css">
<link href="../../doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="../../index.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="../../namespaces.html"><span>Espaces&nbsp;de&nbsp;nommage</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="../../files.html"><span>Fichiers</span></a></li>
      <li><a href="../../examples.html"><span>Exemples</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="../../files.html"><span>Liste&nbsp;des&nbsp;fichiers</span></a></li>
    </ul>
  </div>
<h1>C:/Documents and Settings/israhal17/Bureau/devel/HeroWar/include/gfx/Map.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef MAP_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define MAP_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;SFML/Graphics.hpp&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;SFML/Graphics/Rect.hpp&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 <span class="keyword">namespace </span>gfx{
<a name="l00009"></a>00009 
<a name="l00010"></a>00010 <span class="keyword">typedef</span> std::vector&lt;int&gt; vRow;
<a name="l00011"></a>00011 
<a name="l00013"></a><a class="code" href="../../d0/d1c/namespacegfx.html#059bb226deb1289a6b2ee8a9ae057531">00013</a> <span class="keyword">typedef</span> std::vector&lt;vRow&gt; <a class="code" href="../../d0/d1c/namespacegfx.html#059bb226deb1289a6b2ee8a9ae057531" title="Matrice de map.">vMap</a>;
<a name="l00014"></a>00014 
<a name="l00018"></a><a class="code" href="../../dc/dcf/classgfx_1_1_map.html">00018</a> <span class="keyword">class </span><a class="code" href="../../dc/dcf/classgfx_1_1_map.html" title="Classes qui gère la matrices d&amp;#39;une map.">Map</a> : <span class="keyword">public</span> <a class="code" href="../../d0/d1c/namespacegfx.html#059bb226deb1289a6b2ee8a9ae057531" title="Matrice de map.">vMap</a>
<a name="l00019"></a>00019 {
<a name="l00020"></a>00020 <span class="keyword">public</span>:
<a name="l00025"></a>00025         <a class="code" href="../../dc/dcf/classgfx_1_1_map.html#e4c2791b5fc6e478748ab32a942f0e58">Map</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>&amp; w, <span class="keyword">const</span> <span class="keywordtype">int</span>&amp; h);
<a name="l00026"></a>00026         <a class="code" href="../../dc/dcf/classgfx_1_1_map.html#e4c2791b5fc6e478748ab32a942f0e58">Map</a>(<span class="keyword">const</span> <a class="code" href="../../d0/d1c/namespacegfx.html#059bb226deb1289a6b2ee8a9ae057531" title="Matrice de map.">vMap</a>&amp; map);
<a name="l00027"></a>00027         <span class="keyword">virtual</span> ~<a class="code" href="../../dc/dcf/classgfx_1_1_map.html" title="Classes qui gère la matrices d&amp;#39;une map.">Map</a>(<span class="keywordtype">void</span>);
<a name="l00028"></a>00028 
<a name="l00031"></a>00031         <a class="code" href="../../d0/d1c/namespacegfx.html#059bb226deb1289a6b2ee8a9ae057531" title="Matrice de map.">vMap</a> <a class="code" href="../../dc/dcf/classgfx_1_1_map.html#36979e345931a619760cdae922b0defc">getSubMap</a>(<span class="keyword">const</span> sf::IntRect&amp; zone) <span class="keyword">const</span>;
<a name="l00032"></a>00032 
<a name="l00034"></a>00034         <span class="keywordtype">void</span> <a class="code" href="../../dc/dcf/classgfx_1_1_map.html#8a40d8fd2f97e34e36eec90e4038b465" title="Assigne à une zone de la map une autre map.">setSubMap</a>(<span class="keyword">const</span> sf::IntRect&amp; zone, <span class="keyword">const</span> <a class="code" href="../../d0/d1c/namespacegfx.html#059bb226deb1289a6b2ee8a9ae057531" title="Matrice de map.">vMap</a>&amp; map);
<a name="l00035"></a>00035 
<a name="l00037"></a>00037         <span class="keywordtype">void</span> <a class="code" href="../../dc/dcf/classgfx_1_1_map.html#8a40d8fd2f97e34e36eec90e4038b465" title="Assigne à une zone de la map une autre map.">setSubMap</a>(<span class="keyword">const</span> sf::IntRect&amp; zone, <span class="keywordtype">int</span> val);
<a name="l00038"></a>00038 
<a name="l00040"></a>00040         <span class="keywordtype">int</span> <a class="code" href="../../dc/dcf/classgfx_1_1_map.html#8262e32ad03e463559bb1b4d7b8fa43a" title="Retourne la largeur de la map.">getWidth</a>() <span class="keyword">const</span>;
<a name="l00041"></a>00041 
<a name="l00043"></a>00043         <span class="keywordtype">int</span> <a class="code" href="../../dc/dcf/classgfx_1_1_map.html#5f9ff7f55c4f5ec6015b5e52ec2d0df8" title="Retourne la hauteur de la map.">getHeight</a>() <span class="keyword">const</span>;
<a name="l00044"></a>00044 
<a name="l00046"></a>00046         sf::IntRect <a class="code" href="../../dc/dcf/classgfx_1_1_map.html#d36d3ffe5e5e13c34a5bf6f7810f355c" title="Retourne un rectangle de zone adapter de maniere à ce que zone ne déborde pas de...">fit</a>(<span class="keyword">const</span> sf::IntRect&amp; zone) <span class="keyword">const</span>;
<a name="l00047"></a>00047 
<a name="l00048"></a>00048 };
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 }
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Généré le Wed Feb 4 02:28:38 2009 pour Hero War par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="../../doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>
